<%@ page import="com.surelution.cppei.weixin.gate.SubscriberGascard" %>



<div class="fieldcontain ${hasErrors(bean: subscriberGascardInstance, field: 'certificated', 'error')} ">
	<label for="certificated">
		<g:message code="subscriberGascard.certificated.label" default="Certificated" />
		
	</label>
	<g:checkBox name="certificated" value="${subscriberGascardInstance?.certificated}" />
</div>

<div class="fieldcontain ${hasErrors(bean: subscriberGascardInstance, field: 'cardType', 'error')} ">
	<label for="cardType">
		<g:message code="subscriberGascard.cardType.label" default="Card Type" />
		
	</label>
	<g:select id="cardType" name="cardType.id" from="${com.surelution.cppei.weixin.gate.GasCardType.list()}" optionKey="id" value="${subscriberGascardInstance?.cardType?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: subscriberGascardInstance, field: 'userid', 'error')} ">
	<label for="userid">
		<g:message code="subscriberGascard.userid.label" default="Userid" />
		
	</label>
	<g:textField name="userid" value="${subscriberGascardInstance?.userid}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: subscriberGascardInstance, field: 'certificateType', 'error')} ">
	<label for="certificateType">
		<g:message code="subscriberGascard.certificateType.label" default="Certificate Type" />
		
	</label>
	<g:select id="certificateType" name="certificateType.id" from="${com.surelution.cppei.weixin.gate.CertificateType.list()}" optionKey="id" value="${subscriberGascardInstance?.certificateType?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: subscriberGascardInstance, field: 'cardNo', 'error')} ">
	<label for="cardNo">
		<g:message code="subscriberGascard.cardNo.label" default="Card No" />
		
	</label>
	<g:textField name="cardNo" value="${subscriberGascardInstance?.cardNo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: subscriberGascardInstance, field: 'certificateNo', 'error')} ">
	<label for="certificateNo">
		<g:message code="subscriberGascard.certificateNo.label" default="Certificate No" />
		
	</label>
	<g:textField name="certificateNo" value="${subscriberGascardInstance?.certificateNo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: subscriberGascardInstance, field: 'subscriber', 'error')} required">
	<label for="subscriber">
		<g:message code="subscriberGascard.subscriber.label" default="Subscriber" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="subscriber" name="subscriber.id" from="${com.surelution.cppei.weixin.gate.Subscriber.list()}" optionKey="id" required="" value="${subscriberGascardInstance?.subscriber?.id}" class="many-to-one"/>
</div>

